Smush\Core\Webp\Webp_Optimization A

Total Complexity 56
Dependencies 9
Dependents 3
Total lines 333
Lines of code 212
Logical lines of code 117
Comment lines 44
Methods 28
Properties 11

Methods 28

Method Rating Maintainability Complexity Lines of code
should_reoptimize()
S
56 6 19
should_optimize()
S
60 5 15
size_stats_from_response()
S
62 4 11
get_optimized_sizes_count()
S
62 4 11
optimize()
S
55 3 20
make_meta()
S
59 3 14
has_converted_file()
S
64 3 10
save()
S
65 2 9
get_stats()
S
72 2 6
should_optimize_size()
S
67 2 9
get_size_stats()
S
71 2 6
is_optimized()
S
69 2 7
get_meta()
S
72 2 6
reset()
S
74 2 5
update_from_response()
S
72 1 5
get_errors()
S
81 1 3
get_optimized_file_url()
S
80 1 3
__construct()
S
65 1 9
fetch_meta()
S
75 1 4
delete_data()
S
73 1 5
get_size_meta()
S
72 1 5
get_sizes_meta()
S
72 1 5
get_key()
S
81 1 3
get_file()
S
75 1 4
prepare_size_stats()
S
73 1 5
prepare_stats()
S
68 1 7
get_name()
S
79 1 3
get_sizes_to_convert()
S
81 1 3